package cn.yj.core.business.controller;

import cn.yj.cgs.dba.entity.FeedBack;
import cn.yj.admin.frame.AbstractController;
import cn.yj.core.business.service.FeedBackService;
import cn.yj.entity.R;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author 永健
 * @since 2021-06-19 13:13
 */
@RestController
@RequestMapping("/feedBack")
public class FeedBackController extends AbstractController<FeedBack> {

    @Resource
    private FeedBackService feedBackService;

    @Override
    @GetMapping("/pageList")
    @RequiresPermissions("feedback:list")
    public R pageList(@RequestParam Map<String,Object> params){
        return success(feedBackService.pageList(params,page()));
    }
}
